<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.xxb.entity.Type"%>
<%@page import="com.xxb.dao.TypeDao"%>
<%
	request.setCharacterEncoding("UTF-8");
	
	String typename = request.getParameter("typename");
	String id = request.getParameter("id");
	Type type = new TypeDao().findByid(Integer.parseInt(id));
	type.setTypename(typename);
	
	int rows = new TypeDao().update(type);
	if(rows > 0){
		response.sendRedirect("l_typelist.jsp");
	}
%>